﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="requestAccount.aspx.vb" Inherits="Training.requestAccount" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training:: Request Account</title>
<link rel="Stylesheet" type="text/css" media="screen" href="css/publicStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctr" id="main" runat="server">
        <h2>Request Training Access</h2>
        <p>Please fill out the form to request access to the training center.<br />
        Account credentials will be emailed to you upon review and approval.</p>
        <p>Fields in <span class="req">&nbsp; red &nbsp;</span> are required.</p>
        
        <asp:Label ID="lblAlert" runat="server" CssClass="Alert" Text=""></asp:Label>
        
        <div class="text" style="width: 600px;text-align: left;margin:0 auto;">
        
            <div class="row">
                <div class="half">
                    First Name:<asp:RequiredFieldValidator ID="rfFname" runat="server" 
                        ControlToValidate="tbFname" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator>
                    <br />
                    <asp:TextBox ID="tbFname" CssClass="req" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="half">
                    Last Name:<asp:RequiredFieldValidator ID="rfLname" runat="server" 
                        ControlToValidate="tbLname" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator>
                    <br />
                    <asp:TextBox ID="tbLname" CssClass="req" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">
                    Address:<br />
                    <asp:TextBox ID="tbAddress" CssClass="formfield" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="half">
                    City:<br />
                    <asp:TextBox ID="tbCity" CssClass="formfield" 
                        runat="server" Width="150px"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">
                    State:<br />
                    <asp:DropDownList ID="ddlState" runat="server" AppendDataBoundItems="True" 
                        CssClass="dropDown" DataSourceID="dsStates" DataTextField="StateName" 
                        DataValueField="StateId">
                        <asp:ListItem Value="-1" Text="-select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="half">
                    Zip:<br />
                    <asp:TextBox ID="tbZip" CssClass="formfield" 
                        runat="server" Width="120px"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">
                    Company:<asp:RequiredFieldValidator ID="rfCompany" runat="server" 
                        ControlToValidate="tbCompany" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator>
                    <br />
                    <asp:TextBox ID="tbCompany" CssClass="req" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="half">
                    Phone:<br />
                    <asp:TextBox ID="tbPhone" CssClass="formfield" 
                        runat="server" Width="120px"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">
                    Email:<asp:RequiredFieldValidator ID="rfEmail" runat="server" 
                        ControlToValidate="tbEmail" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="reEmail" runat="server" 
                        ControlToValidate="tbEmail" CssClass="small" Display="Dynamic" 
                        ErrorMessage="invalid email" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbEmail" CssClass="req" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="half">
                    Confirm Email:<asp:RequiredFieldValidator ID="rfConfirm" runat="server" 
                        ControlToValidate="tbConfirmE" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvConfirm" runat="server" ControlToCompare="tbEmail" 
                        ControlToValidate="tbConfirmE" CssClass="small" Display="Dynamic" 
                        ErrorMessage="email does not match"></asp:CompareValidator>
                    <br />
                    <asp:TextBox ID="tbConfirmE" CssClass="req" 
                        runat="server" Width="250px"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">
                    Requested Login: <asp:RequiredFieldValidator ID="rfLogin" runat="server" 
                        ControlToValidate="tbLogin" CssClass="small" Display="Dynamic" 
                        ErrorMessage="required"></asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbLogin" runat="server" CssClass="req" Width="250px"></asp:TextBox>
                </div>
                <div class="half"></div>
                <div class="clr"></div>
           </div>
        </div>
        <asp:Button ID="btnComplete" runat="server" Text="Complete Request" CssClass="button" />
        <br /><br />
        <p><a href="login.aspx">Return to Login Page</a></p>
    </div>
    <!-- completed message -->
    <div class="ctr" id="msg" runat="server" visible="false">
        <h2>Account Request Complete</h2>
        <p><asp:Label ID="lblResult" runat="server" Text=""></asp:Label></p>
        
        <p><a href="login.aspx">Return to Login Page</a></p>
    </div>
    
    <asp:SqlDataSource ID="dsStates" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Conn %>" 
        SelectCommand="SELECT [StateId], [StateName] FROM [States] ORDER BY [StateName]"></asp:SqlDataSource>
    </form>
</body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8222027-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</html>
